import { AppRouteRecordRaw } from '../types';
import { DEFAULT_LAYOUT } from '../base';

const MARKDOWN: AppRouteRecordRaw = {
  path: '/markdown',
  name: 'markdown',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.markdown',
    requiresAuth: true,
    icon: 'icon-ordered-list',
    order: 1,
  },
  children: [
    {
      path: 'example',
      name: 'example',
      component: () => import('@/views/example/markdown.vue'),
      meta: {
        locale: 'menu.example',
        requiresAuth: true,
        icon: 'icon-ordered-list',
        roles: ['*'],
      },
    }
  ]
};

export default MARKDOWN;
